package com.example.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
public class Business {
    @TableId(type = IdType.AUTO)
    private int id;
    private String name;
    private int typeId;
    private int ownerId;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime startTime;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime endTime;
    private BusinessStatus status;
    private Priority priority;
    private String description;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
}
